package com.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.entity.UserIndustry;
import com.repository.UserIndustryDao;
import com.service.base.BaseServiceImp;

@Service("UserIndustryService")
public class UserIndustryServiceImp extends BaseServiceImp<UserIndustry> implements UserIndustryService{
	@Autowired
	private UserIndustryDao userIndustryDao;
	
	@Override
	@Transactional
	public boolean insertprice(UserIndustry o) {
		// TODO Auto-generated method stub
		UserIndustry ui=new UserIndustry();
		List<UserIndustry> uis=userIndustryDao.find(ui);
		if (uis.size()>0) {
			return false;
		}
		//String goodId=o.getGoodId();
		return true;
	}
	
}